package cn.jiyun.controller;


import cn.jiyun.feign.ConsumerFeign;
import cn.jiyun.pojo.Consumer;
import cn.jiyun.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 季乾帅
 * @create 2023/8/22 10:46
 */
@RestController
@RequestMapping("/con")
public class ConsumerController {

    @Autowired
    private ConsumerFeign consumerFeign;

    @RequestMapping("/login")
    public Result login(@RequestBody Consumer consumer) {
        return consumerFeign.login(consumer);
    }
}
